<template>
    <div>
        <p>Home</p>
    </div>
</template>

<script setup>
import { useRoute } from 'vue-router';

const router = useRouter()
const route = useRoute()

console.log(router);//相当于this.$rourer
console.log(route);//相当于this.$roure

const store = useStore()
const count = computed(() => store.state.count)

console.log(count.value);
</script>

<style scoped lang="scss">
div {
    p {
        color: red;
    }
}
</style>